<tagLib name="strends" />
<php>
	function getAlbumShow($id)
	{
		return "<a href='http://www.zaijiahome.com/detail/".$id.".html' target='_blank'>".$id."</a>";
	}
</php>
<script>
function judgeStatus(){
	//alert(1);
	return true;
}
</script>
<include file="Public:header" />
<script type="text/javascript" src="__TMPL__Static/Js/dataList.js"></script>
<div class="handle-btns">
	<strends:imageBtn id="editData" name="editData" value="{%EDIT}" click="editData(this,'checkList','gid')" />
	<strends:imageBtn id="removeData" name="removeData" value="{%REMOVE}" click="removeData(this,'checkList')" />
	<form action="__APP__">
		<span>{%NAME}</span>
		<input class="textinput" type="text" value="{$keyword}" name="keyword" size="12" />
		<small></small>
		<span>{%USER_NAME}</span>
		<input class="textinput" type="text" value="{$uname}" name="uname" id="user_name" size="8" />
		<small></small>
		<span>{%CID}</span>
		<select name="cid">
			<option value="0">{%CATEGORY_ALL}</option>
			<foreach name="category_list" item="category_item">
			<option value="{$category_item.id}" <if condition="$cid eq $category_item['id']">selected="selected"</if>>{$category_item.name}</option>
			</foreach>
		</select>
		<input class="submit_btn" type="submit" value="{%SEARCH}" />
		<input type="hidden" name="{:c('VAR_MODULE')}" value="{$module_name}" />
		<input type="hidden" name="{:c('VAR_ACTION')}" value="index" />
	</form>
</div>
<strends:list 
	id="checkList" 
	style="list" 
	name="album" 
	checkbox="true" 
	action="true" 
	datasource="list" 
	show="id|getAlbumShow:{%ID}|50,title:{%TITLE}|~left,cname:{%CID}|100,show_name:{%USER_NAME}|100,sort:{%SORT}|70,create_time|toDate:{%CREATE_TIME}|150,status|getStatusImg:{%STATUS}|50:toggleStatus|id,is_index|getStatusImg:{%IS_INDEX}|70:toggleStatus|id" 
	actionlist="editData:{%EDIT}:id,removeData:{%REMOVE}:id" action_width="100" />
<div class="pager">{$page}</div>
<include file="Public:footer" />